package com.lichuang.fruitvarietysm.cart.feign;

import com.lichuang.fruitvarietysm.cart.feignEntity.Goods;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

//@FeignClient(value = "goods")
public interface GoodsMapper {
    /**
     * 根据商品id获取全部商品信息
     * @param goodsId
     * @return
     */
    @RequestMapping("goods/getGoods")
    public Goods getGoods(@RequestParam("goodsId")Integer goodsId);


}
